{{include file="../Common/header"}}
	<div id="row">
		<!--left-->
		{{include file="../Common/presonal_left"}}
		<!--/left-->
		<!--right-->
		<div id="presonal-right">
			<div class="presonal-head">
				{{if value="$_SESSION['nickuser']['photo']"}}
				<img src="{{$_SESSION['nickuser']['photo']}}"/>
				{{else}}
				<img src="./Public/home/images/userimg.png" alt="" />
				{{endif}}
				<h3><span class="presonal-user">{{$_SESSION['nickuser']['nickname']}}</span><span>欢迎回来</span></h3>
				{{if value="$_SESSION['nickuser']['personalized']"}}
				<p>{{$_SESSION['nickuser']['personalized']}}</p>
				{{else}}
				<p>他很懒，什么也没说。。。</p>
				{{endif}}
			</div>
			<h3 class="presonal-title">待付款</h3>
			<div class="presonal-content">
				{{if value="$orderData"}}
			{{foreach from="$orderData" $key="$k" value="$v"}}
			<div class="my-order">
				<div class="my-order-title">订单号：
					{{$v['gonum']}}
					<span>|</span>
					{{$v['name']}}
					<span>|</span>
					{{date('Y-m-d H:i:s',$v['gotime'])}}
					{{if value="$v['remark']"}}<br /> *备注：{{$v['remark']}}{{endif}}
				</div>
				
				<div class="order-state order-state{{$k}}">
					{{foreach from="$v['list']" value="$vv"}}
					<div class="order-list">
						<img src="{{$vv['pic']}}"/>
						<p>
							<span>{{$vv['gname']}}</span><br />
							<span>{{$vv['options']}}</span>
						</p>
					</div>
					{{endforeach}}
					<span class="wite">
						{{$v['gototal']}}元<br />	
						{{if value="$v['goorder']" eq 1}}已支付{{else if vlaue="$v['goorder']" eq 0}}	<a href="{{U('Order/endOrder',['goid'=>$v['goid']])}}">待支付</a>{{endif}}
					</span>
					<script type="text/javascript">
						var height=$('.order-state{{$k}}').outerHeight()/2-20; 
						$('.order-state{{$k}} .wite').css("top",height+"px");
					</script>
				</div>
			</div>
			{{endforeach}}
				{{else}}
					<p style="height:100px;line-height: 100px;">您暂时没有待付款订单。 <a href="{{U('Index/index')}}">挑挑喜欢的商品去 »</a></p>
				{{endif}}
			</div>
			<h3 class="presonal-title">购物车</h3>
			<div class="presonal-content presonal-car">
				{{if value="$cartData['goods']"}}
				{{foreach from="$cartData['goods']" value="$v"}}
				<a href="{{U('Content/index',['gid'=>$v['id']])}}"><img src="{{$v['pic']}}"/></a>
				{{endforeach}}
				{{else}}
				<p style="height:100px;line-height: 100px;">您的购物车中暂时没有商品。</p>
				{{endif}}
			</div>
		</div>
		<!--/right-->
	</div>
	<!--footer-->
	{{include file="../Common/footer"}}
	<!--/footer-->
	</body>
</html>